package com.group.eams.service;

import com.group.eams.entity.Discipline;
import com.group.eams.util.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 巧中 on 2016/11/4.
 */
public interface IDisciplineService {
    /**
     *
     * @param name
     * @return
     */
    Discipline findDisciplineByName(String name);


    /**
     * 获取学科列表
     * @return
     */
    List<Discipline> getDisciplineList();

    /**
     * 通过id查询学科信息
     * @param id
     * @return
     */
    Discipline findDisciplineById(int id);

    /**
     * 添加学科
     * @param discipline
     * @return
     */
    Result addDiscipline(Discipline discipline);

    /**
     * 更新学科信息
     * @param discipline
     * @return
     */
    Result updateDiscipline(Discipline discipline);

    /**
     * 通过学科id删除员工
     * @param id
     * @return
     */
    Result deleteDisciplineById(int id);
}
